<%-- 
    Document   : Home
    Created on : Dec 1, 2012, 10:23:08 PM
    Author     : Gary
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <link href="<c:url value="/css/jquery-ui-1.9.2.custom.min.css" />" rel="stylesheet" type="text/css" />
        <link href="<c:url value='/css/tablecss.css'/>" rel="stylesheet" type="text/css"/>
        <link href="<c:url value='/css/style.css'/>" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="<c:url value="/scripts/jquery.js" />" ></script>
        <script type="text/javascript" src="<c:url value="/scripts/jquery-ui-1.9.2.custom.min.js" />" ></script>
        <script type="text/javascript" src="<c:url value="/scripts/jquery.tablesorter.js" />"></script>
        <script type="text/javascript" src="<c:url value="/scripts/jquery.tablesorter.pager.js" />"></script>
        <script>
            $(document).ready(function(){
               
                $(".aLinkbutton").button();
                $("#insured_list")
                .tablesorter({widthFixed: true, widgets: ['zebra']})
                .tablesorterPager({container: $("#pager"),size:5});
            });
        
                
        
        </script>
        <title>Home</title>
    </head>
    <body class="body">
        <jsp:include page="Header.jsp" />
        <div class="maindiv">
            <fieldset class="manfieldset">
                <legend class="mainLegend">Available Conference List</legend>
                <div class="globalTb">
                    <table id="insured_list" class="tablesorter">
                        <thead>
                            <tr>
                                <th><s:text name="Name"/></th>
                                <th><s:text name="Event"/></th>
                                <th><s:text name="Location"/></th>
                                <th><s:text name="Price"/></th>
                                <th>&nbsp;</td>
                            </tr>
                        </thead>
                        <tbody>
                            <s:iterator value="conferences">
                                <tr class="<s:if test="#stat.odd == true">odd</s:if><s:else>even</s:else>">
                                    <td><s:property value="conferenceName"/></td>
                                    <td><s:property value="eventDetail"/></td>
                                    <td><s:property value="locatoin"/></td>
                                    <td><s:property value="price"/></td>
                                    <td class="nowrap" style="text-align: center;">
                                        <a href="<s:url namespace="/public" action="participate_%{conferenceName}" />" class="aLinkbutton"><b>Participate</b></a>
                                    </td>
                                </tr>
                            </s:iterator>
                        </tbody>
                    </table>
                </div>
                <div id="pager" class="pager">
                    <form>
                        <img src="<c:url value="/images/first.png" />" class="first"/>
                        <img src="<c:url value="/images/prev.png"/>" class="prev"/>
                        <input type="text" class="pagedisplay"/>
                        <img src="<c:url value="/images/next.png"/>" class="next"/>
                        <img  src="<c:url value="/images/last.png"/>" class="last"/>
                        <select class="pagesize">
                            <option value="2">2 per page</option>
                            <option value="5">5 per page</option>
                            <option value="10">10 per page</option>

                        </select>
                    </form>
                </div>
            </fieldset>
        </div>
        <div class="footerdiv">
            <jsp:include page="Footer.jsp" /></div>
    </body>
</html>
